home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / Macintosh Programmer’s Workshop / MPW 3.1 / MPW / Interfaces / CIncludes / Scrap.h < prev    next >
Text File  |  1990-12-13  |  953b  |  52 lines

  1. /************************************************************
  2.  
  3. Created: Thursday, September 7, 1989 at 6:48 PM
  4.     Scrap.h
  5.     C Interface to the Macintosh Libraries
  6.  
  7.  
  8.     Copyright Apple Computer, Inc.    1985-1989
  9.     All rights reserved
  10.  
  11. ************************************************************/
  12.  
  13.  
  14. #ifndef __SCRAP__
  15. #define __SCRAP__
  16.  
  17. #ifndef __TYPES__
  18. #include <Types.h>
  19. #endif
  20.  
  21. struct ScrapStuff {
  22.     long scrapSize;
  23.     Handle scrapHandle;
  24.     short scrapCount;
  25.     short scrapState;
  26.     StringPtr scrapName;
  27. };
  28.  
  29. typedef struct ScrapStuff ScrapStuff;
  30. typedef ScrapStuff *PScrapStuff;
  31.  
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35. pascal PScrapStuff InfoScrap(void)
  36.     = 0xA9F9;
  37. pascal long UnloadScrap(void)
  38.     = 0xA9FA;
  39. pascal long LoadScrap(void)
  40.     = 0xA9FB;
  41. pascal long GetScrap(Handle hDest,ResType theType,long *offset)
  42.     = 0xA9FD;
  43. pascal long ZeroScrap(void)
  44.     = 0xA9FC;
  45. pascal long PutScrap(long length,ResType theType,Ptr source)
  46.     = 0xA9FE;
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50.  
  51. #endif
  52.